/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.openbookformat.tags;

/**
 *
 * @author MUFEED
 */
public class ParTag implements Tag {
    private boolean newParagraph;
    private Align align;

    public ParTag() {
        this(true, Align.JUSTIFY);
    }
    public ParTag(boolean newParagraph, Align align) {
        this.newParagraph = newParagraph;
        this.align = align;
    }

    public Align getAlign() {
        return align;
    }

    public void setAlign(Align align) {
        this.align = align;
    }

    public boolean isNewParagraph() {
        return newParagraph;
    }

    public void setNewParagraph(boolean newParagraph) {
        this.newParagraph = newParagraph;
    }

    @Override
    public String toString() {
        return "<par/>";
    }
}
